require 'socket'

server = TCPServer.new(4481)

Socket.accept_loop(server) do |conn|
  p conn
  conn.close
end